package org.bigjava.novelplatform.common.exception;

import lombok.Data;

/**
 * @author ykh
 * @create 2022-05-29 10:55
 */
@Data
public class OrderException extends RuntimeException{
    private ExceptionCodeMessage codeMessage;
    private Object data;
    public OrderException(ExceptionCodeMessage codeMessage) {
        super(codeMessage.getMessage());
        this.codeMessage = codeMessage;
    }
}
